package com.fjp.heartguard.app.event

import com.fjp.heartguard.app.data.bean.QuestionnatireCount
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.livedata.event.EventLiveData

/**
 * 描述　:APP全局的ViewModel，可以在这里发送全局通知替代EventBus，LiveDataBus等
 */
class EventViewModel : BaseViewModel() {


    val unreadMessageEvent = EventLiveData<Int>()
    val questionnatireCountEvent = EventLiveData<QuestionnatireCount>()
    val mineReportsAccount = EventLiveData<Int>()
    val allReportsAccount = EventLiveData<Int>()
    val userInfoChange = EventLiveData<Boolean>()
    val jumpB = EventLiveData<Boolean>()
    val saveQuestionSuccess = EventLiveData<Boolean>()
    val exitApp = EventLiveData<Boolean>()
    val nextFragment = EventLiveData<Boolean>()
    val localReport = EventLiveData<Boolean>()
    val updateLocalReport = EventLiveData<Boolean>()
    val updateLocalAllReport = EventLiveData<Boolean>()
    val noPermission = EventLiveData<Boolean>()

}